﻿<%@ WebHandler Language="C#" Class="Product_ToListBox" %>

using System;
using System.Web;
using HNG.Portal.BLL;
using HNG.Portal.DAL;
using HNG.Portal.DAL.EntityClasses;
using HNG.Portal.DAL.FactoryClasses;
using HNG.Portal.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using System.Text;
using System.Data;
public class Product_ToListBox : IHttpHandler
{
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/javascript";
        int catID =Convert.ToInt32( context.Request.QueryString["id"].Trim());
        StringBuilder sb = new StringBuilder();
        DataTable _dt = new TblSanPhamManager().be_selectToDropdownlist(catID);
        if (_dt != null)
            sb.Append(HNG.LIB.Ajax.JSONHelper.FromDataTable(_dt));
        context.Response.Write(sb.ToString());
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}